<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /* 下拉按钮样式 */
        body{
            background-image:url(static/img/img1.jpg);
        }
        .border{
            text-align: center;
            position: relative;
            top:0px;
            height:100px;


        }
        .dropbtn {
            background-color: #4CAF50;
            color: white;
            padding: 16px;
            font-size: 30px;
            border: none;
            cursor: pointer;
        }

        /* 容器 <div> - 需要定位下拉内容 */
        .dropdown {
            position: relative;
            display: inline-block;

        }

        /* 下拉内容 (默认隐藏) */
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        }

        /* 下拉菜单的链接 */
        .dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
        }

        /* 鼠标移上去后修改下拉菜单链接颜色 */
        .dropdown-content a:hover {background-color: #f1f1f1}

        /* 在鼠标移上去后显示下拉菜单 */
        .dropdown:hover .dropdown-content {
            display: block;
        }

        /* 当下拉内容显示后修改下拉按钮的背景颜色 */
        .dropdown:hover .dropbtn {
            background-color: #3e8e41;
        }
    </style>
    <script src="js/jquery.min.js"></script>
</head>
<body>
<div>
    <h1>车辆投保系统</h1>
    <h1>[[${session.user.uname}]]</h1>
    <a th:href="@{login}"><h1>退出</h1></a>

    <div class="dropdown">
        <button class="dropbtn">信息管理</button>
        <div class="dropdown-content">
<!--            <a th:href="@{userinfo}" target="jj"><button  th:onclick="one(${session.user.uid})">用户信息完善</button></a>-->
            <a th:href="@{userinfo(id=${session.user.uid})}" target="jj">投保人信息完善</a>
            <a th:href="@{car}" target="jj">车辆信息完善</a>
            <a th:href="@{insured}" target="jj">被保人信息完善</a>
        </div>
    </div>
</div>
<!--<script type="text/javascript">-->
<!--    function one(id){-->
<!--        location.href ="@{/one}"+id;-->
<!--    }-->
<!--</script>-->




</body>
</html>